<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>品牌管理</title>
    <css file="__STATIC__/hdjs/hdui.css"/>
    <js file="__STATIC__/jquery/jquery-1.7.2.min.js"/>


   
    <js file="__CONTROLLER_VIEW__/js/js.js"/>
    <css file="__STATIC__/bootstrap/css/bootstrap.min.css"/>

</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr class="tt">
         
            <a href="{|U:'Rand/add'}" class="btn btn-info btn-xs"><span class="glyphicon glyphicon-plus-sign"></span>添加品牌</a>         
            
        </tr>
        <tr>
            <td width="30"></td>
            <td>品牌id</td>           
            <td>品牌名称</td>
            <td>品牌Logo</td>
            <!-- <td>所属分类</td> -->
            <td>排序</td>
            <td>是否热门</td>
            <td width="200">操作</td>
        </tr>

        </thead>
        <tbody>
            <foreach from="$data" key="$k" value="$v">
            <tr pid={$v.pid} cid={$v.cid}>
                    
                    <td width="30"></td>
                    <td>{$v.rid}</td> 
                    <td>{$v.name}</td>
                    <td><img src="__ROOT__/{$v.logo}" alt="" /></td>
                    <!-- <td>所属分类</td> -->
                    <td>{$v.sort}</td>                 
                    <td>
                        <if value="$v['is_hot']">
                            <span class="glyphicon glyphicon-fire"></span>
                        <else/>
                            <span class="glyphicon glyphicon-tint"></span>
                        </if>
                    </td>
                    <td width="200">
                        
                        <a href="{|U:'edit',array('rid'=>$v['rid'])}" class="btn btn-info btn-xs">修改</a>
                        <a href="javascript:;"  onclick= "if(confirm('确认删除么？')) location.href='{|U:'del',array('rid'=>$v['rid'])}'" class="btn btn-danger btn-xs">删除</a>

                    </td>
                </tr>
            
            </tr>
            </foreach>
        </tbody>
    </table>
    <div class="page_hdjob page_cms">
        {$page}
    </div>
</div>

</body>
</html>


